package com.skyeyes.mapper;

import com.skyeyes.entity.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface CommonMapper {


    @Select("select lpad(round(rand()*1000000,0),6,'0')")
    String getRandomCode();
}
